

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#basic" data-toggle="tab">基础信息</a></li>
                <li class=""><a href="#jiage" data-toggle="tab">价格设置</a></li>
                <li class=""><a href="#xingcheng" data-toggle="tab">行程安排</a></li>
                <li class=""><a href="#jiedai" data-toggle="tab">接待标准</a></li>
                <li class=""><a href="#baoming" data-toggle="tab">报名须知</a></li>

            </ul>
        </div>
        <div class="panel-body">
            <div id="storeContent" class="tab-content">
                <div class="tab-pane fade active in" id="basic">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_no')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-goods_no" class="form-control" name="row[goods_no]" type="text" value="{$row.goods_no|htmlentities}" disabled>
                            <small class="form-text text-muted">自动生成，不可更改.</small>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-category_id" data-rule="required" data-source="goods_category/index" data-params='' class="form-control selectpage" name="row[category_id]" type="text" value="{$row.category_id|htmlentities}">
                            <small class="form-text text-muted">{:__('Category_id')}决定参团人员计会不计会</small>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
                        </div>
                    </div>



                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Person_max')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-person_max" class="form-control" name="row[person_max]" type="number" value="{$row.person_max|htmlentities}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Departtime')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-departtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[departtime]" type="text" value="{:$row.departtime?datetime($row.departtime,'Y-m-d'):''}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Uptotime')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-uptotime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[uptotime]" type="text" value="{:$row.uptotime?datetime($row.uptotime,'Y-m-d'):''}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
                        <div class="col-xs-12 col-sm-8">

                            <select  id="c-switch" data-rule="required" class="form-control selectpicker" name="row[switch]">
                                {foreach name="switchList" item="vo"}
                                <option value="{$key}" {in name="key" value="$row.switch"}selected{/in}>{$vo}</option>
                                {/foreach}
                            </select>

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
                            <small class="form-text text-muted">{:__('Weigh')}越大，排序越靠前</small>
                        </div>
                    </div>



                </div>
                <!--价格-->
                <div class="tab-pane fade  " id="jiage">


                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-price" data-rule="required" class="form-control editor" rows="5" name="row[price]" cols="50">{$row.price|htmlentities}</textarea>
                        </div>
                    </div>

                </div>
            <!--行程安排-->
                <div class="tab-pane fade  " id="xingcheng">


                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Trip_schedule')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-trip_schedule" class="form-control editor" rows="5" name="row[trip_schedule]" cols="50">{$row.trip_schedule|htmlentities}</textarea>
                        </div>
                    </div>

                </div>
                <!--接待标准-->
                <div class="tab-pane fade  " id="jiedai">


                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Reception_standards')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-reception_standards" data-rule="required" class="form-control editor" rows="5" name="row[reception_standards]" cols="50">{$row.reception_standards|htmlentities}</textarea>
                        </div>
                    </div>


                </div>
                <!--报名须知-->
                <div class="tab-pane fade  " id="baoming">

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Notes')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-notes" data-rule="required" class="form-control editor" rows="5" name="row[notes]" cols="50">{$row.notes|htmlentities}</textarea>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


